package edu.sctu.practice.class01.zhangwang.assigns.assign03.question_03;

/**
 * Created by Z_W on 2015/10/24.
 */
public class CloneableCircle extends Circle implements Cloneable {
    public Name creator;

    public Name getCreator() {
        return creator;
    }

    public void setCreator(Name creator) {
        this.creator = creator;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        CloneableCircle cloneable = (CloneableCircle) super.clone();
        cloneable.setCreator((Name) cloneable.getCreator().clone());
        return cloneable;
    }

}
